package cn.mazexal.exambg.models.db;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
/**
 * 题目
 *
 */
@Data
@TableName(value = "exam_question")
public class ExamQuestionDO implements Serializable {

	/**
	 * 
	 */
	@TableId(value = "id", type = IdType.INPUT)
	private Long id;

	/**
	 * 菜单分类
	 */
	@TableField(value = "menu_id")
	private Long menuId;

	/**
	 * 题库ID
	 */
	@TableField(value = "exam_bank_id")
	private Long examBankId;

	/**
	 * 题目都是以Markdown格式保存
	 */
	@TableField(value = "context")
	private String context;

	/**
	 * 答案
	 */
	@TableField(value = "answer")
	private String answer;

	/**
	 * 1,单选，2多选，3主观题
	 */
	@TableField(value = "question_type")
	private Integer questionType;

	/**
	 * 备注
	 */
	@TableField(value = "remark")
	private String remark;

	/**
	 * 分数
	 */
	@TableField(value = "score")
	private BigDecimal score;

	/**
	 * 额外信息,比如易错项目等, 通过定时任务来更新
	 */
	@TableField(value = "extra_info")
	private String extraInfo;

	/**
	 * 来源考试ID,检索用
	 */
	@TableField(value = "exam_id")
	private Long examId;

	/**
	 * 来源
	 */
	@TableField(value = "question_from")
	private String questionFrom;

	/**
	 *
	 */
	@TableField(value = "is_del")
	private Integer isDel;

	/**
	 * 解析
	 */
	@TableField(value = "analysis")
	private String analysis;

	/**
	 * 难度
	 */
	@TableField(value = "hard_score")
	private BigDecimal hardScore;

	/**
	 * 选项
	 */
	@TableField(value = "question_options")
	private String questionOptions;

	/**
	 * 材料ID
	 */
	@TableField(value = "materials_id")
	private Long materialsId;
}